import request from '@/utils/request'

// 查询商家消费明细列表
export function listStoreExpend(query) {
  return request({
    url: '/storeExpend/storeExpend/list',
    method: 'get',
    params: query
  })
}

// 查询商家消费明细详细
export function getStoreExpend(id) {
  return request({
    url: '/storeExpend/storeExpend/' + id,
    method: 'get'
  })
}

// 新增商家消费明细
export function addStoreExpend(data) {
  return request({
    url: '/storeExpend/storeExpend',
    method: 'post',
    data: data
  })
}

// 修改商家消费明细
export function updateStoreExpend(data) {
  return request({
    url: '/storeExpend/storeExpend',
    method: 'put',
    data: data
  })
}

// 删除商家消费明细
export function delStoreExpend(id) {
  return request({
    url: '/storeExpend/storeExpend/' + id,
    method: 'delete'
  })
}
